.class public Les/tr0;
.super Les/or0;
.source "ImmutableDoubleValueImpl.java"

# interfaces
.implements Lorg/msgpack/value/j;


# instance fields
.field private final a:D


# direct methods
.method public constructor <init>(D)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/or0;-><init>()V

    .line 2
    iput-wide p1, p0, Les/tr0;->a:D

    return-void
.end method


# virtual methods
.method public a(Lorg/msgpack/core/MessagePacker;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-wide v0, p0, Les/tr0;->a:D

    invoke-virtual {p1, v0, v1}, Lorg/msgpack/core/MessagePacker;->packDouble(D)Lorg/msgpack/core/MessagePacker;

    return-void
.end method

.method public equals(Ljava/lang/Object;)Z
    .locals 7

    const/4 v0, 0x1

    if-ne p1, p0, :cond_0

    return v0

    .line 1
    :cond_0
    instance-of v1, p1, Lorg/msgpack/value/x;

    const/4 v2, 0x0

    if-nez v1, :cond_1

    return v2

    .line 2
    :cond_1
    check-cast p1, Lorg/msgpack/value/x;

    .line 3
    invoke-interface {p1}, Lorg/msgpack/value/x;->l()Z

    move-result v1

    if-nez v1, :cond_2

    return v2

    .line 4
    :cond_2
    iget-wide v3, p0, Les/tr0;->a:D

    invoke-interface {p1}, Lorg/msgpack/value/x;->u()Lorg/msgpack/value/e;

    move-result-object p1

    invoke-interface {p1}, Lorg/msgpack/value/u;->o()D

    move-result-wide v5

    cmpl-double p1, v3, v5

    if-nez p1, :cond_3

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public hashCode()I
    .locals 4

    .line 1
    iget-wide v0, p0, Les/tr0;->a:D

    invoke-static {v0, v1}, Ljava/lang/Double;->doubleToLongBits(D)J

    move-result-wide v0

    const/16 v2, 0x20

    ushr-long v2, v0, v2

    xor-long/2addr v0, v2

    long-to-int v1, v0

    return v1
.end method

.method public m()J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/tr0;->a:D

    double-to-long v0, v0

    return-wide v0
.end method

.method public n()Lorg/msgpack/value/ValueType;
    .locals 1

    .line 1
    sget-object v0, Lorg/msgpack/value/ValueType;->FLOAT:Lorg/msgpack/value/ValueType;

    return-object v0
.end method

.method public o()D
    .locals 2

    .line 1
    iget-wide v0, p0, Les/tr0;->a:D

    return-wide v0
.end method

.method public p()Ljava/math/BigInteger;
    .locals 3

    .line 1
    new-instance v0, Ljava/math/BigDecimal;

    iget-wide v1, p0, Les/tr0;->a:D

    invoke-direct {v0, v1, v2}, Ljava/math/BigDecimal;-><init>(D)V

    invoke-virtual {v0}, Ljava/math/BigDecimal;->toBigInteger()Ljava/math/BigInteger;

    move-result-object v0

    return-object v0
.end method

.method public toJson()Ljava/lang/String;
    .locals 2

    .line 1
    iget-wide v0, p0, Les/tr0;->a:D

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    move-result v0

    if-nez v0, :cond_1

    iget-wide v0, p0, Les/tr0;->a:D

    invoke-static {v0, v1}, Ljava/lang/Double;->isInfinite(D)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-wide v0, p0, Les/tr0;->a:D

    invoke-static {v0, v1}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_1
    :goto_0
    const-string v0, "null"

    return-object v0
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .line 1
    iget-wide v0, p0, Les/tr0;->a:D

    invoke-static {v0, v1}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic u()Lorg/msgpack/value/e;
    .locals 0

    .line 1
    invoke-virtual {p0}, Les/tr0;->u()Lorg/msgpack/value/j;

    return-object p0
.end method

.method public u()Lorg/msgpack/value/j;
    .locals 0

    return-object p0
.end method
